<!--#layout("/common/layout.html",{"jsBase":"/js/ncode/ncodebatch/"}){ -->
<div class="layui-row">
    <form id="searchForm" class="layui-form layui-form-pane">
        <div class="layui-collapse" lay-filter="condictionCol">
            <div class="layui-colla-item">
                <h2 class="layui-colla-title">查询条件</h2>
                <div class="layui-colla-content layui-show">
                    <div class="layui-row">
                        <div class="layui-form-item">
                            <div class="layui-inline">


                                <label class="layui-form-label">批次Id</label>

                                <div class="layui-input-inline">
                                    <input type="text" name="batchId" autocomplete="off" class="layui-input">
                                </div>


                                <label class="layui-form-label">批次名称</label>

                                <div class="layui-input-inline">
                                    <input type="text" name="batchName" autocomplete="off" class="layui-input">
                                </div>

                                <label class="layui-form-label" style="width: 140px">是否生成N码</label>
                                <div class="layui-input-inline">
                                    <select class="select" name="status" id="status"  promtion="请选择"  lay-filter="code">
                                        <option value="">请选择</option>
                                        <option value="1" >是</option>
                                        <option value="0" >否</option>
                                    </select>
                                </div>

                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">

                                <label class="layui-form-label">有效截止期</label>

                                <div class="layui-input-inline">
                                    <div class="date-range-pick">
                                        <input type="text" name="expiredDateQuery" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <label class="layui-form-label">N码类型</label>
                                <div class="layui-input-inline">
                                    <select class="select" name="nType" id="nType"  promtion="请选择"  lay-filter="code">
                                        <option value="">请选择</option>
                                        <option value="2" >体验卡</option>
                                        <option value="4" >正式会员卡</option>
                                    </select>
                                </div>
                                <label class="layui-form-label" style="width: 140px">权益名称</label>
                                <div class="layui-input-inline">
                                    <layui:simpleDataSelect name="roleId"  data="${roleList}"
                                                            attrId="roleId" attrName="roleName" laySearch="true" />
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <label class="layui-form-label" >省份</label>
                                <div class="layui-input-inline">
                                    <layui:simpleDataSelect name="provinceId" id="provinceId" data="${provinceList}"
                                                            attrId="provId" attrName="provName" laySearch="true"  layFilter="colFilter"/>
                                </div>
                                <button style="float: right;" class="layui-btn layui-btn-normal" type="button" id="searchFormSearch">搜索</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</div>

<div class="layui-btn-group">
    <layui:accessButton function="ncode.ncodebatch.add" action="add">增加</layui:accessButton>
    <layui:accessButton function="ncode.ncodebatch.edit" action="edit">编辑</layui:accessButton>
    <layui:accessButton function="ncode.ncodebatch.gen" action="gen">生成N码</layui:accessButton>
    <layui:accessButton function="ncode.ncodebatch.ncode" action="ncode">N码管理</layui:accessButton>
    <layui:accessButton function="ncode.ncodebatch.setTime" action="setTime">延长有效期</layui:accessButton>
</div>

<table id="ncodebatchTable" lay-filter="ncodebatchTable"></table>
<!--#} -->
<script>
    layui.use(['index'], function () {
        var index = layui.index
        index.init();
    });

</script>
